package com.shopcart.service;

import java.util.Collection;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.domain.Sort;

import com.shopcart.domain.StoreCategory;


public interface StoreCategoryService {
	
	Collection<StoreCategory> findByLevel(Integer level,Sort sort);
	
	Page<StoreCategory> findAll(Pageable p);
	
	StoreCategory save(StoreCategory cate);

	int updateByPrimaryKey(StoreCategory cate);
	
	StoreCategory findById(String id);
	
	void delete(String id);
	
	int countByCode(String code);

	StoreCategory findByCode(String code);

}
